package com.example.hotexe;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;

public class FoundFragment extends Fragment implements OnClickListener{
    private LinearLayout mTabNearly;
    private LinearLayout mTabPlace;
	
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
    		Bundle savedInstanceState) {
    	View v = inflater.inflate(R.layout.activity_found, container, false);
    	mTabNearly = (LinearLayout) v.findViewById(R.id.nearly);
		mTabPlace = (LinearLayout) v.findViewById(R.id.place);
		mTabNearly.setOnClickListener(this);
		mTabPlace.setOnClickListener(this);
    	return v;
    }
	
	@Override
	public void onClick(View v) {
		int id = v.getId();
		if(id==R.id.nearly){
			Intent intent = new Intent(getActivity(),NeaarlyActivity.class);
			startActivity(intent);
		}else if(id==R.id.place){
			Intent intent = new Intent(getActivity(),PlaceActivity.class);
			startActivity(intent);
		}
	}
}
